Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 11 |
Ratio | 100 % |
Changes | 0 |
1 | View Code Duplication | const DB = require('../../libraries/db') |
|
14 | getCustomerByOpenId: async function (openid) { |
||
15 | |||
16 | let user = await DB.readMysql.first( |
||
17 | '*' |
||
18 | ) |
||
19 | .from(table) |
||
20 | .where('openid', openid) |
||
21 | |||
22 | return user |
||
23 | |||
24 | }, |
||
25 | |||
44 | } |